# -*- coding: utf-8 -*-
from selenium.webdriver.common.by import By
application_management={
    '应用管理': {
        '新建应用': [By.XPATH, '//button/*[contains(text(),"新建应用")]']
    },
    '新建应用页面':{
        'PC端全新应用':[By.XPATH, '//*[contains(text(),"PC端全新应用") and @class="type-title"]'],
        '移动端全新应用':[By.XPATH, '//*[contains(text(),"移动端全新应用") and @class="type-title"]'],
        'PC端插件应用':[By.XPATH, '//*[contains(text(),"PC端插件应用") and @class="type-title"]'],
        '确定':[By.XPATH, '//button/*[contains(text(),"确定")]']
    },
    '新建PC端全新应用':{
        '应用名称':[By.XPATH, '//input[@class="el-input__inner" and @placeholder="请输入"]'],
        '应用描述':[By.XPATH, '//*[@class="el-textarea__inner" and @placeholder="请输入"]'],
        '代码仓库_仓库名称': [By.XPATH, '//*[@placeholder="请输入仓库名称"]'],
        '仓库模板_Framework': [By.XPATH, '//*[contains(text(),"基于建模平台.Net Framework SDK开发全新应用")]'],
        '代码仓库_仓库描述': [By.XPATH, '//*[@placeholder="请输入仓库描述，最多150字"]'],
        '下一步': [By.XPATH, '//span[contains(text(),"下一步")]'],
        '制品仓库_仓库名称': [By.XPATH, '//*[@placeholder="请输入仓库名称"]'],
        '制品仓库_仓库描述': [By.XPATH, '//*[@placeholder="请输入仓库描述"]'],
        '完成': [By.XPATH, '//span[contains(text(),"完成")]']
    }
}